-- GENERATED SPELL FOR [Vigilant Shade] --


function spell0_30085(pUnit, Event) --@Invisibility,Self--
pUnit:FullCastSpellOnTarget(55848,pUnit)
pUnit:RegisterEvent('Sorts_30085', 589, 1)
end

function spell1_30085(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(55850,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30085', 548, 1)
end

function spell2_30085(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(55851,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_30085', 595, 1)
end

function Sorts_30085(pUnit, Event)
local choix_sorts_30085 = math.random(0, 2)
if choix_sorts_30085 == 0 then
pUnit:RegisterEvent('spell0_30085', 1, 1)
end
if choix_sorts_30085 == 1 then
pUnit:RegisterEvent('spell1_30085', 1, 1)
end
if choix_sorts_30085 == 2 then
pUnit:RegisterEvent('spell2_30085', 1, 1)
end
end

function mob30085_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_30085', math.random(1500, 3000), 1)
end

function mob30085_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30085_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob30085_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(30085, 1, 'mob30085_Action')
RegisterUnitEvent(30085, 2, 'mob30085_Leave')
RegisterUnitEvent(30085, 3, 'mob30085_Kill')
RegisterUnitEvent(30085, 4, 'mob30085_Die')
